package com.scs.application.modules.dept.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
/**
 * <p>
 * </p>
 */
@Data
@Accessors(chain = true)
@TableName("dept_his_bill_doctor")
@EntityClassAnnotation(remark = "非一物一码 计费信息")
public class HisBillDoctor extends DataEntity {


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "his收费流水号",
            length = "100",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String hisKey;

    @EntityFieldAnnotation(
            text = "收费项目代码（HIS中唯一字段）",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String matrCodeHis;

    @EntityFieldAnnotation(
            text = "状态：0:耗材 1:药品 ",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private Integer billType;

    @EntityFieldAnnotation(
            text = "(SPD系统）唯一码，有的话为高值",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String sn;

    @EntityFieldAnnotation(
            text = "收费价格",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private Double price;

    @EntityFieldAnnotation(
            text = "收费数量",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private Double qty;

    @EntityFieldAnnotation(
            text = "消耗科室代码（病人所属科室）",
            length = "30",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String deptCodePatient;

    @EntityFieldAnnotation(
            text = "开单科室代码(手术室,介入室等)",
            length = "30",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String deptCodeOp;

    @EntityFieldAnnotation(
            text = "记账日期",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private Date billDate;

    @EntityFieldAnnotation(
            text = "手术单号",
            length = "30",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String oprtCode;

    @EntityFieldAnnotation(
            text = "患者代码（HIS系统中唯一）",
            length = "30",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String patientCode;

    @EntityFieldAnnotation(
            text = "是否是耗材",
            length = "",
            not_null = false,
            default_value = "0",
            comment = "1：是耗材"
    )
    private Boolean flagMatr;

    @EntityFieldAnnotation(
            text = "备注",
            length = "200",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String remark;


    // creator ,在父类中处理


    // gmt_create ,在父类中处理


    // modifier ,在父类中处理


    // gmt_modified ,在父类中处理

    @EntityFieldAnnotation(
            text = "计费人",
            length = "30",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String execUser;

}
